<?php
/**
 * Not Null Rule
 * Validate that a value is not empty.
 *
 * @todo        Create a NotEmpty rule. This should check for null and that rule
 *              should do what this rule does.
 * @package     Q-Validate
 * @subpackage  Rules
 * @author      Luke Visinoni <luke.visinoni@gmail.com>
 * @copyright   (c) 2010 Luke Visinoni <luke.visinoni@gmail.com>
 * @version     $Id: NotNull.php 37 2010-12-23 02:38:44Z luke.visinoni $
 */
class Q_Rule_NotNull extends Q_Rule_Abstract {

    public function isValid($value) {
    
        return $value != '';
    
    }

}
